%html
	%head
		%title New Member
	%body
		%h1 New Member
		= form_for @person do |f|
			%p
				=f.label :Name      
				=f.text_field :name
			= f.fields_for :address do |ff|
				%p
					= ff.label :Street      
					= ff.text_field :street
				%p	
					= ff.label :City        
					= ff.text_field :city
				%p	
					= ff.label :Country    
					= ff.text_field :country
				%p
			= f.fields_for :phones do |ff|
				%p
					= ff.label :'Phone number'
					= ff.text_field :number

				
				%p
			=f.submit 'Save'
		= link_to 'Back', people_path
